package com.itheima01;

import java.util.Scanner;

public class QQlogin {
    public static void main(String[] args) {
        //声明两个变量 存储QQ的账号和密码
        int qqnum = 1154078890;
        long qqpwd = 3320310954L;

        //从键盘获取QQ的账号和密码
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入QQ账号：");
        int a = sc.nextInt();
        System.out.print("请输入您的账号密码：");
        long b = sc.nextLong();

        //比较获取的账号密码与原来的是否一致

        if (a == qqnum) {
            System.out.println("您输入的账号正确");
            if (b == qqpwd) {
                System.out.println("您输入的密码正确");
            } else {
                System.out.println("您输入的密码有误");
            }
        } else {
            System.out.println("您输入的账号有误");
        }


    }
}
